from rest_framework import serializers

from goods.models import Brand


class BrandSerializer(serializers.ModelSerializer):
    """品牌序列化器类"""
    class Meta:
        model = Brand
        fields = ('id', 'name', 'logo', 'first_letter')

